﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Tesorera.Master" AutoEventWireup="true" CodeBehind="BuscarPresupuesto.aspx.cs" Inherits="Interfaces.Presupuesto.BuscarPresupuesto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">

        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
            </asp:ScriptManagerProxy>
            <asp:Panel ID="Panel2" runat="server" GroupingText="Buscar presupuesto" 
                style="text-align: left">
                &nbsp;<table class="style1">
                    <tr>
                        <td>
                            <asp:RadioButton ID="RadioButton4" runat="server" AutoPostBack="True" 
                                Checked="True" GroupName="Parametro" 
                                oncheckedchanged="RadioButton4_CheckedChanged" Text="Por gestion especifica" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:RadioButton ID="RadioButton5" runat="server" AutoPostBack="True" 
                                GroupName="Parametro" oncheckedchanged="RadioButton5_CheckedChanged" 
                                Text="Por intervalo y estado" />
                        </td>
                    </tr>
                </table>
                <br />
                <asp:Panel ID="Panel3" runat="server" GroupingText="Buscar">
                    <br />
                    Gestion:
                    <asp:TextBox ID="TextBox1" runat="server" MaxLength="4" Width="125px"></asp:TextBox>
                    <ajaxToolkit:FilteredTextBoxExtender ID="TextBox1_FilteredTextBoxExtender" 
                        runat="server" Enabled="True" FilterType="Numbers" TargetControlID="TextBox1">
                    </ajaxToolkit:FilteredTextBoxExtender>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <br />
                    <br />
                </asp:Panel>
                <asp:Panel ID="Panel4" runat="server" GroupingText="Buscar" Visible="False">
                    &nbsp;&nbsp;
                    <table class="style1">
                        <tr>
                            <td>
                                Desde:
                                <asp:DropDownList ID="DropDownList1" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td>
                                Hasta:
                                <asp:DropDownList ID="DropDownList2" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <table class="style1">
                        <tr>
                            <td>
                                <asp:RadioButton ID="RadioButton1" runat="server" Checked="True" 
                                    GroupName="Estado" Text="Todos" />
                            </td>
                            <td>
                                <asp:RadioButton ID="RadioButton2" runat="server" GroupName="Estado" 
                                    Text="Abierto" />
                            </td>
                            <td>
                                <asp:RadioButton ID="RadioButton3" runat="server" GroupName="Estado" 
                                    Text="Cerrado" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                <br />
                <asp:Button ID="Button1" runat="server" CssClass=JCIstyle onclick="Button1_Click" Text="Buscar"  />
                <br />
                <asp:Panel ID="Panel5" runat="server">
                    <asp:DataList ID="DataList1" runat="server" 
                        onitemcommand="DataList1_ItemCommand">
                        <HeaderTemplate>
                            <tr style="color:#000000">
                                 <td style='border:2px solid #123456;' bgcolor="#3a67b1" >
                                      
                                    <asp:Label ID="Label1" runat="server" Text="Gestion"></asp:Label>
                                </td>
                                 <td style='border:2px solid #123456;' bgcolor="#3a67b1" >
                                      
                                    <asp:Label ID="Label2" runat="server" Text="Estado"></asp:Label>
                                </td>
                            </tr>
                            &nbsp;
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr style="color:#000000">
                               <td style='border:2px solid #123456;'>
                                             <asp:Label ID="Gestion" runat="server" Text='<%# Eval("Gestion") %>'></asp:Label>
                                </td>
                                <td style='border:2px solid #123456;'>
                                        
                                    <asp:Label ID="Estado" runat="server" Text='<%# Eval("EstadoTexto") %>'></asp:Label>
                                </td>
                                <td style='border:2px solid #123456;'>
                                        
                                    <asp:LinkButton ID="Ver" runat="server" CommandName="Ver">Ver</asp:LinkButton>
                                </td>
                                <td style='border:2px solid #123456;'>
                                        
                                    <asp:LinkButton ID="Editar" runat="server" CommandName="Editar" 
                                        Visible='<%# Eval("Estado") %>'>Editar</asp:LinkButton>
                                </td>
                                <td style='border:2px solid #123456;'>
                                        
                                    <asp:LinkButton ID="CerrarGestion" runat="server" CommandName="Cerrar" 
                                        Visible='<%# Eval("Estado") %>'>Cerrar Gestion</asp:LinkButton>
                                    <ajaxToolkit:ConfirmButtonExtender ID="CerrarGestion_ConfirmButtonExtender" 
                                        runat="server" ConfirmText="Esta seguro que desea cerrar esta gestion? una vez cerrada  la gestion podra tener acceso al manejo de esta gestion" 
                                        Enabled="True" TargetControlID="CerrarGestion">
                                    </ajaxToolkit:ConfirmButtonExtender>
                                </td>
                            </tr>
                            &nbsp;&nbsp;&nbsp;
                        </ItemTemplate>
                    </asp:DataList>
                    <asp:Label ID="LabelError" runat="server" ForeColor="Red" Visible="False"></asp:Label>
                    <br />
                    <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">Crear Presupuesto</asp:LinkButton>
                </asp:Panel>
                <br />
                <br />
                <br />
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
